#include "DeviceState.h"
#include "Device.h"
#include "DeviceStatePool.h"

namespace DeviceStates{

CDeviceState::CDeviceState(void)
{
}

CDeviceState::~CDeviceState(void)
{
}

CDeviceState* CDeviceState::changeState( E_DEVICESTATE state)
{
	switch(state)
	{
	case DEVICE_STATE_RINGING:
		deviceHandle->changeState(Device_State_Ringing);
		break;
	case DEVICE_STATE_CONNECTED:
		deviceHandle->changeState(Device_State_Connected);
		break;
	default:
		break;

	}
	 
	return deviceHandle->m_CurrentState;
}
}
